let flag = true
if (flag) {
  import("./foo.js").then(foo => {
    console.log(foo.name)
    console.log(foo.age)
    console.log(foo.sayHello())
  })
}

